package com.jetsum.micro.service;

import com.jetsum.api.service.HelloService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;

@RefreshScope
@Service
public class HelloServiceImpl implements HelloService {

    @Value("${spring.application.name}")
    private String serverName;
    @Value("${info:Default value}")
    private String info;

    @Override
    public String sayHello(String hello) {
        System.out.println("hello:" + hello);
        return serverName + ":hello2" + ",info:" + info;
    }
}
